package com.zjf.carpark.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjf.carpark.entities.SysLog;

import java.util.Date;

/**
 * @description:
 * @author: 张建飞
 * @createDate: 2019/12/23
 * @version: 1.0
 */
public class SysLogPageVO extends SysLog {
    private String userName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date beginTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;
    private int limit;//每页的记录数
    private int page;//当前页码
    private int pageIndex;//起始页数


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageIndex() {
        return (page - 1) * limit;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
